#pragma once
class GotoAddressDialog
{
	LONGLONG mFileLength;
	LONGLONG mAddress;
	WNDPROC mDefaultProcedureForEditField;
	HWND mEditField;
	HWND mOkButton;
public:
	GotoAddressDialog(LONGLONG fileLength);

	bool DoModal(HINSTANCE, HWND parentWindow);
	LONGLONG GetAddress() const;

private:
	static LRESULT CALLBACK WindowProcForEditField(HWND hwndEdit,
		UINT uMsg, WPARAM wParam, LPARAM lParam);
	static INT_PTR CALLBACK DialogProc(HWND hwndDlg, UINT inMessage,
		WPARAM wParam, LPARAM lParam);

	void ValidateAddress();
	void LinkToDilogWindow(HWND);
};

